package com.literature.search.file.entity.vo;

import com.literature.search.core.entity.CollectFileRelationship;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.Id;

/**
 * @ClassName CollectionListVO
 * @Description TODO
 * @Author abin
 * @Date 2023/3/4 15:38
 * @Version 1.0
 */
@Data
public class CollectionListVO {

    @ApiModelProperty(value = "用户Id")
    private String userId;

    @ApiModelProperty(value = "文件Id")
    private String fileId;

    @ApiModelProperty(value = "文件名")
    private String fileName;

    @ApiModelProperty(value = "收藏时间")
    private String collectDate;

    @ApiModelProperty(value = "文献缩略图ID")
    private String thumbnailId;

    @ApiModelProperty(value = "文献上传者")
    private String uploader;

    public CollectionListVO(CollectFileRelationship relationship){
        this.userId = relationship.getUserId();
        this.fileId = relationship.getFileId();
        this.collectDate = relationship.getCreateDate();
    }
}
